#pragma once

#include "Actor.h"

#define EMITTER_DEFAULT_FREQUENCY			1.0f
#define	EMITTER_DEFAULT_ON					true
#define EMITTER_DEFAULT_TIMETONEXTEMISSION	0.1f

class Emitter : public Actor
{
protected:
	Emitter();
protected:
	virtual ~Emitter();
protected:
	virtual void Update(float elapsedTime);
public:
	const float GetFrequency() const;
	const bool	IsOn() const;
public:
	void SetFrequency(float frequency);
	void SetOn(bool on);
public:
	virtual void Emit();
private:
	float	m_fFrequency;
	bool	m_bOn;
	float	m_fTimeToNextEmission;
};

